package morning.cat.springdatademo.redis;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author morningcat
 */
@Component
@Getter
public class RedisBean {

    private StringRedisTemplate template;


    @Autowired
    public RedisBean(StringRedisTemplate template) {
        this.template = template;
    }



}